<div id="hp_intro"><%= @page_title %></div>
<p>
<%= render :partial => "priorities/form" %>
<p>	

<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr>
		<td></td>
		<td align="right"><span class="table_header"><%= t('priorities.newest.added')%></span></td>
		<td style="padding-left: 7px; margin-bottom: 2px;"><%= will_paginate @priorities %></td>	
		<td align="right"><%= rss_url(@rss_url) %></td>						
	</tr>
<% for priority in @priorities %>
	<% if @endorsements %>
		<% endorsement = @endorsements.detect {|e| e.priority_id == priority.id } %>
	<% end %>
	<tr><td valign="top"></td>
		<td valign="top" align="right" width="60">
			<div class="priority_added">
			<nobr><%= time_ago(priority.created_at) %></nobr>
			</div>
		</td>
		<td valign="top" style="padding-left: 8px;" colspan="2">
		<div id="priority_<%= priority.id %>" class="priority_listing">
			<%= render :partial => "priorities/listing", :locals => {:priority => priority, :endorsement => endorsement, :value => 0} %>
		</div>
		</td>
	</tr>
<% end %>

</table>

<%= will_paginate @priorities %>
